package com.oj.api.core.constants;

import com.oj.common.constants.ConstantEnum;

/**
 * Created by Bing on 2018/5/6.
 */
public enum JudgeConstant implements ConstantEnum{

    JUDGING("正在评测",0),
    COMPILE_SUCCESS("编译通过",10),
    COMPILE_ERROR("编译失败",20),
    TIME_OUT("时间超时限定",30),
    MEMORY_OUT("内存超出限定",40),
    ANSWER_CORRECT("答案正确",50),
    ANSWER_ERROR("答案错误",60),
    EXCEPTION("运行时异常",70);

    private final String text;
    private final Integer value;

    JudgeConstant(String text,Integer value) {
        this.text = text;
        this.value = value;
    }

    @Override
    public Integer getValue() {
        return this.value;
    }

    @Override
    public String getText() {
        return this.text;
    }
}
